home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / ors.xml < prev    next >
Text File  |  2002-08-30  |  5KB  |  118 lines

  1. <search function="ors">
  2.   <name>O'Reilly.com Search</name>
  3.   <description>
  4.     Search O'Reilly.com for articles, books, etc<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/all [default]</td><td> - </td><td>All of O'Reilly.com</td></tr>
  8.       <tr><td>/art</td><td> - </td><td>Articles</td></tr>
  9.       <tr><td>/book</td><td> - </td><td>Books</td></tr>
  10.       <tr><td>/conf</td><td> - </td><td>Conferences</td></tr>
  11.     </table>
  12.     <div class="helpboxDescLabels">Dev Centers:</div>
  13.     <table class="helpboxDescTable">
  14.       <tr><td>/apache</td><td> - </td><td>Apache Dev Center</td></tr>
  15.       <tr><td>/dotnet</td><td> - </td><td>.NET Dev Center</td></tr>
  16.       <tr><td>/java</td><td> - </td><td>Java Dev Center</td></tr>
  17.       <tr><td>/linux</td><td> - </td><td>Linux Dev Center</td></tr>
  18.       <tr><td>/moz</td><td> - </td><td>Mozilla Dev Center</td></tr>
  19.       <tr><td>/palm</td><td> - </td><td>Palm Dev Center</td></tr>
  20.       <tr><td>/php</td><td> - </td><td>PHP Dev Center</td></tr>
  21.       <tr><td>/perl</td><td> - </td><td>Perl Dev Center</td></tr>
  22.       <tr><td>/python</td><td> - </td><td>Python Dev Center</td></tr>
  23.       <tr><td>/soap</td><td> - </td><td>SOAP Dev Center</td></tr>
  24.       <tr><td>/webdev</td><td> - </td><td>Web Dev Center</td></tr>
  25.       <tr><td>/websevices</td><td> - </td><td>Web Services Dev Center</td></tr>
  26.       <tr><td>/wireless</td><td> - </td><td>Wireless Dev Center</td></tr>
  27.       <tr><td>/xml</td><td> - </td><td>XML Dev Center</td></tr>
  28.     </table>
  29.     <div class="helpboxDescLabels">Examples:</div>
  30.     <table class="helpboxDescTable">
  31.       <tr><td>ors php</td></tr>
  32.       <tr><td>ors /moz</td></tr>
  33.     </table>
  34.   </description>
  35.   <category>Computers</category>
  36.   <link>http://www.oreillynet.com/</link>
  37.   <contributor>Brent Beardsley</contributor>
  38.   
  39.   <form name="orssearch"
  40.         action="http://www.oreillynet.com/search/"
  41.         method="get">
  42.     <input type="hidden" name="sp-q"/>
  43.     <input type="hidden" name="sp-k"/>
  44.   </form>
  45.   
  46.   <script><![CDATA[
  47.     function ors(q)
  48.     {
  49.       if( nullArgs("ors", q) )
  50.         return false;
  51.  
  52.       var args = parseArgs(q, "all, book, art, conf, apache, dotnet, java, linux, moz, palm, php, perl, python, soap, webdev, webservices, wireless, xml");
  53.       if( q == "" )
  54.         openSearchWindow("http://www.oreillynet.com");
  55.       else if( args.switches.length == 1 )
  56.       {
  57.         switch( args.switches[0].name )
  58.         {
  59.           case "all":
  60.             document.orssearch["sp-k"].value = "all"; break;
  61.           case "book":
  62.             document.orssearch["sp-k"].value = "books"; break;
  63.           case "art":
  64.             document.orssearch["sp-k"].value = "articles"; break;
  65.           case "conf":
  66.             document.orssearch["sp-k"].value = "conferences"; break;
  67.           case "apache":
  68.         openSearchWindow("http://www.onlamp.com/apache/"); return false;
  69.           case "dotnet":
  70.         openSearchWindow("http://www.oreillynet.com/dotnet/"); return false;
  71.           case "java":
  72.         openSearchWindow("http://www.onjava.com/"); return false;
  73.           case "linux":
  74.         openSearchWindow("http://linux.oreillynet.com/"); return false;
  75.           case "moz":
  76.         openSearchWindow("http://www.oreillynet.com/mozilla/"); return false;
  77.       case "palm":
  78.         openSearchWindow("http://palmos.oreilly.com/"); return false;
  79.       case "php":
  80.         openSearchWindow("http://www.onlamp.com/php/"); return false;
  81.       case "perl":
  82.         openSearchWindow("http://perl.oreilly.com/"); return false;
  83.       case "python":
  84.         openSearchWindow("http://www.onlamp.com/python/"); return false;
  85.       case "soap":
  86.         openSearchWindow("http://www.oreillynet.com/topics/webservices/soap"); return false;
  87.       case "webdev":
  88.         openSearchWindow("http://www.oreillynet.com/javascript/"); return false;
  89.       case "webservices":
  90.         openSearchWindow("http://www.oreillynet.com/webservices/"); return false;
  91.       case "wireless":
  92.         openSearchWindow("http://www.oreillynet.com/wireless/"); return false;
  93.       case "xml":
  94.         openSearchWindow("http://www.xml.com/"); return false;
  95.       default:
  96.             document.orssearch["sp-k"].value = args.switches[0].name; break;
  97.         }
  98.         document.orssearch["sp-q"].value = args.q;
  99.         submitForm(orssearch);
  100.       }
  101.       else if( args.switches.length > 1 )
  102.         nullArgs("ors","?");
  103.       else
  104.       {
  105.         document.orssearch["sp-k"].value = "all";
  106.         document.orssearch["sp-q"].value = args.q;
  107.         submitForm(orssearch);
  108.       }
  109.     }
  110.   ]]></script>
  111.  
  112.   <copyright>
  113.     Copyright (c) 2002 David Bau
  114.     Distributed under the terms of the
  115.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  116.   </copyright>
  117. </search>
  118.